home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / c / idd.zip / A_README next >
Text File  |  1989-02-13  |  2KB  |  46 lines

  1.  
  2.                   Installable Device Drivers in C
  3.  
  4.  This document is intended to describe a method for using version
  5.  1.5 (or greater) of Borland's Turbo C compiler to develop
  6.  "Installable Device Drivers" for MS-DOS.
  7.  
  8.  Installable Device Drivers are created by first writing the
  9.  individual driver functions to be supported, then linking these
  10.  functions with the "Driver Header".  A prototype header file is
  11.  provided in the file HDR.ASM.  Note that two data items (the
  12.  "Attribute" and "Name/unit" fields) must be filled in with
  13.  information specific to your driver before this file will
  14.  assemble properly.
  15.  
  16.  The driver header file assumes the existence of the following
  17.  functions (stubs are provided in the DRIVER.LIB library file),
  18.  which perform the various operations described in the Installable
  19.  Device Drivers chapter of the DOS Reference Manual:
  20.  
  21.            Init()                   MediaCheck()
  22.            BuildBPB()               IoCtlIn()
  23.            Input()                  ndInput()
  24.            InputStatus()            InputFlush()
  25.            Output()                 OutVerify()
  26.            OutStatus()              OutFlush()
  27.            IoCtlOut()               DevOpen()
  28.            DevClose()               RemMedia()
  29.  
  30.  A sample character device driver is included in this package,
  31.  which creates a device named "MON".  Characters output to this
  32.  device will appear on the IBMPC monochrome screen.  Study of the
  33.  file MONO.C should reveal the details of this implementation.
  34.  
  35.  The file DRIVER.H provides a number of useful definitions for
  36.  developing Device Drivers.  Reading the code will probably do
  37.  more for you than reading this document.
  38.  
  39.  Questions or comments on this package may be directed to:
  40.  
  41. Frank Whaley
  42. Senior Development Engineer
  43. Quadratron Systems Incorporated
  44. few@quad1.quad.com
  45. uunet!ccicpg!quad1!few
  46.